﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysPost.Request;
/// <summary>
/// 获取系统岗位列表请求实体
/// </summary>
public class RequestGetSysPostListModel : RequestBaseModel
{
    /// <summary>
    /// 岗位编号
    /// </summary>
    public string? PostCode { get; set; }
    /// <summary>
    /// 岗位名称
    /// </summary>
    public string? PostName { get; set; }
    /// <summary>
    /// 角色状态（0正常 1停用）
    /// </summary>
    [StringLength(1, ErrorMessage = "岗位状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
}

